/**
  * @file		gpio.h
  * @author		Naresuan University: Advance Computer System, class of 2013
  * @version	V1.0.0
  * @date		18-September-2013
  * @brief		Header of GPIO module
  */
#ifndef __GPIO_H
#define __GPIO_H

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include <stm32f10x_rcc.h>
#include <stm32f10x_gpio.h>
	 
/* Public typedef ------------------------------------------------------------*/
/* Public define -------------------------------------------------------------*/
#define	LOW			0
#define	HIGH		1	 
	 
/* Public macro --------------------------------------------------------------*/
/* Public variables ----------------------------------------------------------*/
/* Public function prototypes ------------------------------------------------*/
void pinMode(int pin, int mode);
int digitalRead(int pin);
void digitalWrite(int pin, int value);

#ifdef __cplusplus
}
#endif

#endif /* __GPIO_H */
